package com.zhentao;

/**
 * Hello world!
 *
 */

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 支付服务启动类
 *
 * @SpringBootApplication: SpringBoot应用标识
 * @EnableDiscoveryClient: 启用服务注册与发现
 * @EnableTransactionManagement: 启用事务管理
 * @MapperScan: 扫描MyBatis的Mapper接口
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableTransactionManagement
@MapperScan("com.zhentao.payment.mapper")
public class PaymentServiceApplication
{
    public static void main( String[] args )
    {
        SpringApplication.run(PaymentServiceApplication.class, args);
    }
}
